#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import pptchat_blueprint
from api_1_0.pptChatResource.pptChatResource import PptChatResource
from api_1_0.pptChatResource.pptChatOtherResource import PptChatOtherResource

api = Api(pptchat_blueprint)

api.add_resource(PptChatResource, '/ppt-chat/<auto_id>', '/ppt-chat', endpoint='PptChat')


@pptchat_blueprint.route('/ppt-chat/conversation-basic', methods=['POST'], endpoint='PptChatConversationBasic')
def chat_ppt_framework_basic():
    return PptChatOtherResource.chat_ppt_framework_basic()


@pptchat_blueprint.route('/ppt-chat/history', methods=['GET'], endpoint='PptChatHistory')
def get_chat_history():
    return PptChatOtherResource.get_chat_history()


@pptchat_blueprint.route('/ppt-chat/conversation-with-document', methods=['POST'], endpoint='PptChatConversationWithDocument')
def chat_ppt_framework_with_document():
    return PptChatOtherResource.chat_ppt_framework_with_document()